//
//  MVTableViewCell.m
//  23-QQ音乐
//
//  Created by dllo on 16/8/15.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "MVTableViewCell.h"
#import "MvList.h"
@interface MVTableViewCell ()<UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
@property (weak, nonatomic) IBOutlet UICollectionView *mvCollectionView;
@end


@implementation MVTableViewCell

- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
    if (indexPath.row == 0) {
        return CGSizeMake(CGRectGetWidth(collectionView.bounds)- 10, CGRectGetHeight(collectionView.bounds) / 2 - 15);
    } else {
        return CGSizeMake((CGRectGetWidth(collectionView.bounds) - 15) / 2, CGRectGetHeight(collectionView.bounds) / 4);
    }
}


- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
    return 5;
}
- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
    UICollectionViewCell *cell  = [collectionView dequeueReusableCellWithReuseIdentifier:@"cell" forIndexPath:indexPath];
    return  cell;
}

- (void)setMvList:(MvList *)mvList {
    _mvlist = mvList;
//    _labelTop.text = [NSString stringWithFormat:@"%@-%@", mvList.mvtitle, mvList.singername];
//    _labelDown.text = mvList.mvdesc;
//    [_imageTitle sd_setImageWithURL:[NSURL URLWithString:mvList.picurl] placeholderImage:nil];
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
